/* subtitle_management/styles/common.css */

/* ==========================================================================
   Base & Layout
   ========================================================================== */

.subtitle-tab-pane {
  padding: 15px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 面板容器样式 - 简约设计 */
.panel-container {
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.panel-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e4e7eb;
  padding: 14px 18px;
  flex-shrink: 0;
}

.panel-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-right: 12px;
}

/* ==========================================================================
   Components
   ========================================================================== */

.tab-toolbar {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.styled-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
}

.styled-form-section {
  background: linear-gradient(135deg, #f7fafd 60%, #e3f0ff 100%);
  box-shadow: 0 2px 12px 0 rgba(64,158,255,0.08);
  border-radius: 14px;
  border: 1.5px solid #e0eaff;
  margin-top: 10px;
  padding: 20px;
}

.section-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #303133;
  display: flex;
  align-items: center;
}

.section-title:before {
  content: "";
  width: 4px;
  height: 16px;
  background-color: #409eff;
  margin-right: 8px;
  border-radius: 2px;
  display: inline-block;
}

.form-group {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background-color: #fafafa;
}

.form-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #409eff;
  margin-bottom: 10px;
  margin-top: 5px;
  letter-spacing: 1px;
}

.submit-btn {
  min-width: 140px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(64,158,255,0.10);
}

.submit-btn[disabled] {
  background: #e4e7ed !important;
  color: #bfcbd9 !important;
  border-color: #e4e7ed !important;
  box-shadow: none !important;
}

.language-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-hint {
  margin-left: 10px;
  font-size: 0.8em;
  color: #909399;
}

/* 空状态样式 */
.empty-container {
  height: calc(100vh - 210px);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background-color: #fafbfc;
}

/* ==========================================================================
   Element Plus Overrides
   ========================================================================== */

.el-table__header th {
  background-color: #f5f7fa !important;
  color: #303133 !important;
  font-weight: bold !important;
}

.el-table__row.current-row {
  background-color: #ecf5ff !important;
}

.drama-pagination-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

.drama-pagination-container .el-pagination {
  min-width: 0;
  flex-shrink: 1;
  /* 新增 ↓ */
  max-width: 100%;
  box-sizing: border-box;
}

.el-input.is-disabled .el-input__wrapper {
  background-color: #f5f7fa !important;
} 